package com.we.es.query;

import org.elasticsearch.action.search.SearchResponse;

/**
 * 默认的查询响应处理,将数据从文档中转换到entity中
 *
 * @author   朱晓川
 * @Date	 Aug 12, 2014 	 
 */
public class DefaultResponseHandler extends AbstractResponseHandler {

	public DefaultResponseHandler(SearchResponse response, Class<?> entityClazz) {
		super(response, entityClazz);
	}

	@Override
	protected SearchResult handleResponse() {
		return this.result;
	}

}
